import Request from '@/utils/request'

// 人员预警趋势
export function getPersonWarningData (params: {type:string}) {
  return Request({
    url: '/xzzagk/stats/warn_per_trend',
    method: 'GET',
    params
  })
}

// 车辆预警趋势
export function getVehicleWarningData (params: {type:string}) {
  return Request({
    url: '/xzzagk/stats/warn_car_trend',
    method: 'GET',
    params
  })
}

// 预警统计数据
export function getStatisticsData () {
  return Request({
    url: '/xzzagk/stats/warn_cnt',
    method: 'GET'
  })
}

// 预警人员类型及来源统计
export function getTypeAndOriginData () {
  return Request({
    url: '/xzzagk/stats/warn_type_src',
    method: 'GET'
  })
}

// 检查站数据量统计
export function getRetrievalData () {
  return Request({
    url: '/xzzagk/stats/jcz_data_cnt',
    method: 'GET'
  })
}

// 人员通行趋势
export function getPersonRetrievalData (params: {type:string}) {
  return Request({
    url: '/xzzagk/stats/warn_per_trend',
    method: 'GET',
    params
  })
}

// 车辆通行趋势
export function getVehicleRetrievalData (params: {type:string}) {
  return Request({
    url: '/xzzagk/stats/jcz_car_trend',
    method: 'GET',
    params
  })
}

// 人车预警趋势
export function getWarningData (params: {type:string}) {
  return Request({
    url: '/xzzagk/stats/jcz_warn_trend',
    method: 'GET',
    params
  })
}

// 资源台账统计
export function equipCntPerType (params: any) {
  return Request({
    url: '/xzzagk/equip/equipCntPerType',
    method: 'GET',
    params
  })
}
